package com.chat.websocket.domain;

/**
 * @author 崔超
 * 2022/2/24
 */
public class MemberInfo {
    private final String roomName;
    private final String nickName;
    private final String avatarUrl;

    public MemberInfo(String roomName, String nickName,int avatarIndex) {
        this.roomName = roomName;
        this.nickName = nickName;
        this.avatarUrl = "/static/" + avatarIndex + ".jpg";
    }

    public String getRoomName() {
        return roomName;
    }

    public String getNickName() {
        return nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }
}
